package com.likan.chqjtgc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 登录日志表
 * </p>
 *
 * @author lxh
 * @since 2021-01-10
 */
@TableName("BASIC_LOGIN_LOG")
@ApiModel(value="BasicLoginLog对象", description="登录日志表")
public class BasicLoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "用户名/手机号")
    @TableField("USER_NAME")
    private String userName;

    @ApiModelProperty(value = "用户ID")
    @TableField("USER_ID")
    private String userId;

    @ApiModelProperty(value = "登录端ID")
    @TableField("CLIENT_ID")
    private String clientId;

    @ApiModelProperty(value = "登录客户端IP")
    @TableField("IP")
    private String ip;

    @ApiModelProperty(value = "登录地点/地址")
    @TableField("ADDRESS")
    private String address;

    @ApiModelProperty(value = "登录浏览器")
    @TableField("BROWSER")
    private String browser;

    @ApiModelProperty(value = "操作系统")
    @TableField("OPERATING_SYSTEM")
    private String operatingSystem;

    @ApiModelProperty(value = "1 成功 0 失败")
    @TableField(value = "STATUS", fill = FieldFill.INSERT)
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField(value = "CREATE_USER_ID", fill = FieldFill.INSERT)
    private String createUserId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }
    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    public String getBrowser() {
        return browser;
    }

    public void setBrowser(String browser) {
        this.browser = browser;
    }
    public String getOperatingSystem() {
        return operatingSystem;
    }

    public void setOperatingSystem(String operatingSystem) {
        this.operatingSystem = operatingSystem;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    @Override
    public String toString() {
        return "BasicLoginLog{" +
            "id=" + id +
            ", userName=" + userName +
            ", userId=" + userId +
            ", clientId=" + clientId +
            ", ip=" + ip +
            ", address=" + address +
            ", browser=" + browser +
            ", operatingSystem=" + operatingSystem +
            ", status=" + status +
            ", createTime=" + createTime +
            ", createUserId=" + createUserId +
        "}";
    }
}
